main(i,j){scanf("%d%d",&i,&j);printf("%d",i*i+j*j);}
